﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation = "false" CodeFile="ClassPlanAndInfact.aspx.cs" Inherits="Manage_Emp1_ClassPlanAndInfact" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title></title>
  <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
  <script language="javascript" type="text/javascript" src="../../Scripts/mootools.js"></script>
    <script language="javascript" type="text/javascript" src="../../Scripts/calendar.js"></script>
    <script src="../../Scripts/calendar/Popup.js" type="text/javascript"></script>
<style type="text/css">
    .cinputedit
    {
    	 border:solid 1px green;
    }
    .cinput
    {
    	border:none;
    }
    

    
</style>
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
   <!--  快速转换位置按钮  -->
   
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
    <!--  内容列表   -->
    <div id="form2">
  
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7">
	    <td height="24"  background="../skin/images/tbg.gif">计划和实际完成课程列表
        &nbsp;&nbsp;<asp:Button ID="btnexport" runat="server"     Text="导出Excel" onclick="btnexport_Click" /></td>               
    </tr>
     
   <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False"  
                            DataKeyNames="PlanFinishId"  SelectedIndex="0" 
              OnRowDataBound="GridView1_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView1_Sorting" onrowcommand="GridView1_RowCommand" >
                            <Columns>
                           <%-- <asp:TemplateField HeaderText="选择" >
                                    <ItemTemplate>
                                          <asp:CheckBox ID="chkID1" runat="server" />
                                          <asp:HiddenField ID="hdfPlanFinishId" runat="server" Value='<%#Eval("PlanFinishId") %>' />
                                    </ItemTemplate>
                                    
                                    <ItemStyle width="40px" HorizontalAlign="Center"  />
                                </asp:TemplateField>--%>
                                 <asp:TemplateField HeaderText="课程编号" SortExpression="Code">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTypename" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="课程名称" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="是否完成" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblfinish" runat="server" Text='<%# Eval("Finish") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程小时数" SortExpression="Time">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="是否启用" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsValid" runat="server" Text='<%# Eval("IsValidDesc") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="计划安排时间" SortExpression="Period">
                                    <ItemTemplate>
                                        <asp:Label ID="lblPeriod" runat="server" Text='<%# Eval("Period") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="学习日期" SortExpression="StudyDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lbStudyDate" runat="server" Text='<%#Eval("StudyDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="完成测试日期" SortExpression="FinishDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lblFinishDate" runat="server" Text='<%#Eval("FinishDate")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="测试分数" SortExpression="Score">
                                    <ItemTemplate>
                                        <asp:Label ID="lbScore" runat="server" Text='<%#Eval("Score") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--  <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                   <asp:LinkButton runat="server" ID="lbtDelete" CommandArgument='<%#Eval("PlanFinishId")%>'
                                    CommandName="Del" Text="删除" Visible='<%#delete==1%>' OnClientClick="return confirm('确定要删除？')"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>--%>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
   </td>
   </tr>
    <tr bgcolor="#FAFAF1">
    <td height="28"  style=" padding-left:14px">
	  <%--  <asp:CheckBox ID="selectAll1" runat="server" Enabled="false"  Text="全选" 
            oncheckedchanged="selectAll1_CheckedChanged" AutoPostBack="true" />&nbsp;
          <asp:Button class="coolbg" ID="Button1" Enabled="false" OnClientClick="return confirm('你确定要删除选择课程吗?');" runat="server"
                          Text="批量删除"  OnClick="btnDeleteMass_Click"/>--%>
    </td>
    </tr>
   </table>
   <div style="display:none">
       <table width="98%" border="0" cellpadding="2" cellspacing="1"  align="center" style="margin-top:8px">
   
    <tr  style="border-bottom:none">
	    <td height="24" style=" text-align:left"> 
           <asp:Label ID="lbladdclass" runat="server" ForeColor="Red" Text="添加计划和实际完成课程"></asp:Label>
        </td>
    </tr>
    </table>
       <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
         <tr bgcolor="#E7E7E7" style="border-bottom:none;">
	      <td colspan="8" background="../skin/images/tbg.gif" align='left'>
                      <table border='0' cellpadding='0' cellspacing='0' align='center'>
                        <tr>
                        <td width="70px">课程类型：</td>
					    <td width="210px"> <asp:DropDownList ID="ddlctype" runat="server" 
                Width="200px"></asp:DropDownList></td>
                        <td width='70'>
                          关键字：
                        </td>
                        <td width='165'>
                            <asp:TextBox ID="txtkeyword" runat="server" Width="150px"></asp:TextBox>
                        </td>
                     
                        <td width="100px">
                          <asp:ImageButton ID="ibtnsearch" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"   ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnsearch_Click"  />
                        </td>
                         </tr>
                      </table>
                     
            </td>      
    </tr>
    <tr style="background-color:#ffffff">
    <td colspan="8">
          <asp:GridView ID="GridView2" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" 
              
                            DataKeyNames="ClassId"  DataMember="Name" SelectedIndex="0" 
              OnRowDataBound="GridView2_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView2_Sorting" 
           
              >
                            <Columns>
                                <asp:TemplateField HeaderText="选择" >
                                    <ItemTemplate>
                                          <asp:CheckBox ID="chkID" runat="server" />
                                          <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                    </ItemTemplate>
                                    
                                    <ItemStyle width="40px" HorizontalAlign="Center"  />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程编号" SortExpression="Code">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTypename" runat="server" Text='<%# Eval("ClassTypeId") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="课程名称" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 
                                <asp:TemplateField HeaderText="课程小时数" SortExpression="Time">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="是否启用" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsValid" runat="server" Text='<%# Eval("IsValid") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
   </td>
   </tr>
    <tr bgcolor="#FAFAF1">
   
	     <td height="28" style="padding-left:14px; width:58px" >
                   <asp:CheckBox ID="selectAll" runat="server" AutoPostBack="true" Enabled="false" 
                       oncheckedchanged="selectAll_CheckedChanged" Text="全选" />
               </td>
                 <td width="70">
                        学习日期： 
                    </td>
                    <td width="165">
                        <asp:TextBox ID="txtstudydate" runat="server" onclick="fPopUpDlg('../../Scripts/calendar/calendar.htm', txtstudydate, 'winpop', 200, 210);return false" Width="150px"></asp:TextBox>
                    </td>
                      <td width="70">
                        完成测试日期： 
                    </td>
                    <td width="165">
                        <asp:TextBox ID="txtfinishdate" runat="server" onclick="fPopUpDlg('../../Scripts/calendar/calendar.htm', txtfinishdate, 'winpop', 200, 210);return false" Width="150px"></asp:TextBox>
                    </td>
                    
                    <td colspan="3"><asp:Button ID="btnDeleteAdd" runat="server" class="coolbg" Enabled="false" 
                       OnClick="btnDeleteAdd_Click" OnClientClick="return confirm('你确定要添加选择课程吗?');" 
                       Text="批量添加" /></td>
    </td>
    </tr>
     <tr align="right" bgcolor="#EEF4EA">
                <td height="36" align="center" colspan="8">
                    <webdiyer:AspNetPager ID="pager1" runat="server" OnPageChanged="pager1_PageChanged"
                        PageSize="10">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
    </table>
    </div>
  </div>
  </ContentTemplate>
     <Triggers><asp:PostBackTrigger ControlID="btnexport" /></Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
